package io;

import java.io.File;
import java.io.IOException;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Li_DaChiZi
 * Date: 2025/7/1
 * Time: 16:00
 */
public class Demo2 {
    public static void main(String[] args) throws IOException {
        File file = new File("./test.txt");
        boolean ok = file.createNewFile();
        System.out.println(ok);

        System.out.println(file.exists());
        System.out.println(file.isFile());
        System.out.println(file.isDirectory());
    }
}
